<%@ page language="java" isELIgnored="false" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<c:set var="uri" value="${pageContext.request.requestURI}"/>
<c:set var="temp" value="1"/>
<c:choose>
	<c:when test="${fn:contains(uri, '/issue/') }"><c:set var="temp" value="1"/></c:when>
	<c:when test="${fn:contains(uri, '/workday/') }"><c:set var="temp" value="2"/></c:when>
	<c:when test="${fn:contains(uri, '/techsupport/know') }"><c:set var="temp" value="3"/></c:when>
	<c:when test="${fn:contains(uri, '/techsupport/download') }"><c:set var="temp" value="4"/></c:when>
</c:choose>

<div class="lnb_area">
	<h2>기술지원</h2>
	<dl class="lnb">
		<dt>&#45; <a href="${pageContext.request.contextPath }/issue/listIssue.omp">이슈지원</a></dt>
		<c:if test="${temp eq 1 or temp eq 2 }">
			<dd>
				<ul class="lnb">
					<s:iterator value="categories">
						<li><a href="${pageContext.request.contextPath }/issue/listIssue.omp?sub.ctgrCd=<s:property value="ctgrCd" />" class="<s:if test="ctgrCd == sub.ctgrCd">choice</s:if>">&#45; <s:property value="ctgrNm" /></a></li>
					</s:iterator>
					<li><a href="${pageContext.request.contextPath }/workday/listWorkday.omp" class="<c:out value="${temp eq 2 ? 'choice':'' }"/>">&#45; Work-day 설정</a></li>
				</ul>
			</dd>
		</c:if>
	</dl>
	<dl class="lnb">
		<dt>&#45; <a href="${pageContext.request.contextPath }/techsupport/knowList.omp">지식베이스</a></dt>
		<c:if test="${temp eq 3 }">
			<dd>
				<ul class="lnb">
					<s:iterator value="categories">
						<li><a href="${pageContext.request.contextPath }/techsupport/knowList.omp?cr.ctgrCd=<s:property value="ctgrCd" />" class="<s:if test="ctgrCd == cr.ctgrCd">choice</s:if>">&#45; <s:property value="ctgrNm" /></a></li>
					</s:iterator>
					<li><a href="${pageContext.request.contextPath }/techsupport/knowList.omp?ctgrCd=API" class="${param.ctgrCd eq 'API' ? 'choice':'' }">&#45; API Center</a></li>
					<li><a href="${pageContext.request.contextPath }/techsupport/knowList.omp?ctgrCd=update" class="${param.ctgrCd eq 'update' ? 'choice':'' }">&#45; 지식수정요청</a></li>
				</ul>
			</dd>
		</c:if>
	</dl>
	<dl class="lnb">
		<dt>&#45; <a href="${pageContext.request.contextPath }/techsupport/downloadWrite.omp">다운로드</a></dt>
		<c:if test="${temp eq 4 }">
			<dd>
				<ul class="lnb">
					<s:iterator value="categories">
						<li><a href="${pageContext.request.contextPath }/techsupport/downloadWrite.omp?sub.ctgrCd=<s:property value="ctgrCd" />" class="<s:if test="ctgrCd == sub.ctgrCd">choice</s:if>">&#45; <s:property value="ctgrNm" /></a></li>
					</s:iterator>
				</ul>
			</dd>
		</c:if>
	</dl>
</div>
